package org.jeecg.modules.demo.cwSaleInvoice.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.cwSaleInvoice.entity.CwSaleInvoice;
import org.jeecg.modules.demo.soSettlement.entity.SoSettlementVo;

import java.util.List;

/**
 * @Description: cw_sale_invoice
 * @Author: jeecg-boot
 * @Date:   2021-12-15
 * @Version: V1.0
 */
public interface CwSaleInvoiceMapper extends BaseMapper<CwSaleInvoice> {

    CwSaleInvoice getByInvoiceNo(String invoiceNo);

    List<CwSaleInvoice> getlistBySosNo(String sosNo);

    CwSaleInvoice getByskNo(String skNo);

    List<CwSaleInvoice> getBysoNo(String id);

    List<CwSaleInvoice> getYkpBysoNo(String id);

    List<SoSettlementVo> queryXseBymonth();

    String getDepartId();
    @InterceptorIgnore(tenantLine = "1")
    List<CwSaleInvoice> getCollectionJob(@Param("parameter") String parameter);

    public String getMaxCode();
}
